There should be a consistent gap between our pipes. Let's make that 150 for now.

  • Change the height parameter in top_pipe to (350 - pipe_height).
  • Go to and drag Set Top into your interval event.
  • Change the name in front of hte action to top_pipe. Change the parameter to 250.

The height of the bottom pipe + the height of the top pipe + 150 will equal 500: the height of the screen!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)